package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetilMapper {
    void insertBrath(List<OrderDetail> orderDetailList);
    @Delete("delete from order_detail where order_id = #{orderId}")
    void deleteById(Long orderId);

    List<OrderDetail> getByOrderId(Long id);
}
